// [[ OnflowGenerator File UUID: 12093c7a6cb94e6d9d905852bed28884  ]]
package com.itdct.onflow.system.configuration.qo

import com.itdct.onflow.core.qo.BaseQo
import com.itdct.onflow.core.type.Add
import com.itdct.onflow.core.type.Update
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length

/**
 * @author DCTANT
 * @date 2025-09-01 14:24:40
 * @version 1.0
 * @description 系统配置编辑入参
 */
@Schema(name = "系统配置编辑入参", description = "系统配置编辑入参")
class SysConfigurationEditQo : BaseQo() {
    // [[ OnflowGenerator Range (- fields -) Start ]]
    @Schema(title = "配置键", example = "")
    @NotBlank(message = "请输入配置键", groups = [Add::class, Update::class])
    @Length(max = 100, message = "配置键不能超过100个字符", groups = [Add::class, Update::class])
    var configKey: String? = null

    @Schema(title = "配置值", example = "")
    @NotBlank(message = "请输入配置值", groups = [Add::class, Update::class])
    @Length(max = 200, message = "配置值不能超过200个字符", groups = [Add::class, Update::class])
    var configValue: String? = null

    @Schema(title = "是否启用", example = "")
    @NotNull(message = "请输入是否启用", groups = [Add::class, Update::class])
    var enable: Boolean? = null

    @Schema(title = "其他参数", example = "")
    @Length(max = 500, message = "其他参数不能超过500个字符", groups = [Add::class, Update::class])
    var params: String? = null

    @Schema(title = "备注", example = "")
    @Length(max = 500, message = "备注不能超过500个字符", groups = [Add::class, Update::class])
    var remark: String? = null

// [[ OnflowGenerator Range (- fields -) End ]]
}